package com.lzx.service.zlzs.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.lzx.mapper.zlzs.CompanyMapper;
import com.lzx.mapper.zlzs.FertilizerMapper;
import com.lzx.model.zlzs.Company;
import com.lzx.model.zlzs.Fertilizer;
import com.lzx.service.zlzs.CompanyService;
import com.lzx.service.zlzs.FertilizerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service("fertilizerService")
public class FertilizerServiceImpl extends ServiceImpl<FertilizerMapper,Fertilizer> implements FertilizerService {
    @Autowired
    private FertilizerMapper fertilizerMapper;



    @Override
    public List<Fertilizer> selectdemolist( ){
        try {
            return fertilizerMapper.selectdemolist();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public Fertilizer selectdemobyid(String id){
        try {
            return fertilizerMapper.selectdemobyid(id);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
